import axios from "@/api/axios"

// 获取就业地市统计
function getEmploymentCityStats(year, grade) {
    const params = {}
    if (year !== undefined) params.year = year
    if (grade !== undefined) params.grade = grade
    return axios.get('/employment/city', { params })
}

// 获取岗位性质统计
function getEmploymentNatureStats(year, grade, college, major) {
    const params = {}
    if (year !== undefined) params.year = year
    if (grade !== undefined) params.grade = grade
    if (college !== undefined) params.college = college
    if (major !== undefined) params.major = major
    return axios.get('/employment/nature', { params })
}

export {
    getEmploymentCityStats,
    getEmploymentNatureStats
}